<template>
  <div id="admin-app">
    <page404 v-if="is404"/>
    <router-view v-else/>
  </div>
</template>

<script>
import { mapState } from 'vuex'
import page404 from '@/views/404'

export default {
  name: 'App',
  components: { page404 },
  computed: {
    ...mapState([
      'is404',
    ]),
  },
}
</script>
